import sys
import random

def f(A,B):
    return A/4+B/2

a=[[10,-10],
   [10,10],
   [3.4,-2],
   [-10,10],
   [1.000,-1.00],
   [12312321,-223.3],
   [1111,0],
   [0,123],
   [-111.2,0],
   [0,-334343.5]
  ]
for i  in range(10):
    fin = open('{}.in'.format(i+1),'w')
    fout = open('{}.out'.format(i+1),'w')
    print(*a[i],file=fin)
    print('{:.3f}'.format(f(*a[i])),file=fout)
    fin.close()
    fout.close()
